@import "./mixin.less";
/*滚动条*/
::-webkit-scrollbar {
  /* 滚动条整体部分 */
  width: 0px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  /* 滚动条里面的小方块，能向上向下移动（或向左向右移动） */
  background-color: #d7d7d7;
  border-radius: 5px;
}
// ::-webkit-scrollbar-track {
//   /* 滚动条的轨道（里面装有Thumb） */
// }
::-webkit-scrollbar-button {
  /* 滚动条的轨道的两端按钮，由于通过点击微调小方块的位置。 */
  display: none;
}
// ::-webkit-scrollbar-track-piece {
//   /* 内层轨道，滚动条中间部分 */
// }
// ::-webkit-scrollbar-corner {
//   /* 边角，即垂直滚动条和水平滚动条相交的地方 */
// }
// ::-webkit-resizer {
//   /* 两个滚动条的交汇处上用于拖动调整元素大小的小控件 */
// }
//基础 样式
body,
html {
  line-height: 1;
  font-family: "PingFangSC-Regular", "Microsoft Yahei", "STHeitiSC-Light",
    "Helvetica-Light", arial, sans-serif, "Droid Sans Fallback"; // min-width: 1220px
  -webkit-tap-highlight-color: transparent;
  height: 100%;
}
//清除浮动
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
/** 左侧菜单收缩样式 */
.ant-menu-dark,
.ant-menu-dark .ant-menu-sub {
  color: rgba(255, 255, 255, 0.65);
  background: #015293;
}
.ant-menu.ant-menu-dark .ant-menu-item-selected,
.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {
  background: #396c95;
  color: #fff;
}
.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-active {
  background: #396c95;
}
.ant-menu-vertical > .ant-menu-item {
  height: 50px;
  line-height: 50px;
  margin: 0;
}
/** button公共重置样式 */
.ant-btn {
  height: 34px;
  line-height: 34px;
  padding: 0 15px;
  font-size: 14px;
  min-width: 70px;
  color: #777;
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
  &:hover {
    border: 1px solid @base-color;
    color: @base-color;
    background: #fff;
  }
}
.ant-btn + .ant-btn {
  margin-left: 10px;
}
.ant-btn-primary {
  background: @base-color;
  color: #fff;
  border: none;
  &:hover {
    background-color: #1c8de8;
    color: #fff;
    border: none;
  }
}
.btn-reset {
  background: #f1f3f6;
  color: #313a46;
  border: none;
  &:hover {
    background: #e9edf3;
    color: #313a46;
    border: none;
  }
}
.ant-btn-danger {
  background: #fff;
  border: 1px solid #ea1021;
  color: #ea1021;
  &:hover {
    border-color: #ff2828;
    color: #ff2828;
    background: #fff;
  }
}

.high-search-btn {
  .suncnui {
    font-size: 14px;
    margin-right: 4px;
  }
}
/** tooltip公共重置样式 */
.ant-tooltip-arrow::before {
  background-color: #015293;
}
.ant-tooltip-inner {
  background-color: #015293;
}
/** select公共重置样式 */
.ant-select {
  color: #333;
  box-sizing: border-box;
  height: 34px;
  line-height: 34px;
}
.ant-select + .ant-select {
  margin-left: 10px;
}
/** modal 公共重置样式*/
.ant-modal-content {
  box-shadow: 1px 1px 50px rgba(189, 189, 189, 0.3);
  border-radius: 10px;

  .ant-modal-header {
    padding: 10px 80px 0px 20px;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    .ant-modal-title {
      height: 45px;
      line-height: 45px;
      font-size: 16px;
      color: #333;
      font-weight: bold;
    }
  }
  .ant-modal-body {
    padding: 15px;
  }
  .ant-modal-footer {
    border-top: none;
    padding: 30px 16px;
    text-align: center;
  }
}
.ant-modal-confirm-btns {
  .ant-btn-primary {
    background: @base-color;
    color: #fff;
    border: none;
    &:hover {
      background-color: #1c8de8;
      color: #fff;
      border: none;
    }
  }
}
//路由列表页样式
.base-table-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  .table-select-group {
    flex-shrink: 0;

    width: 100%;
    padding: 15px 10px 5px 15px;
    .right {
      float: right;
    }
    .left {
      float: left;
      align-items: center;
    }
    margin-bottom: 10px;
  }
  .search-input {
    height: 34px;
    border-width: 1px;
    border-style: solid;
    background-color: #fff;
    border-radius: 2px;
    vertical-align: top;
  }
  .search-input + .ant-select {
    margin-left: 10px;
  }
  .ant-select + .search-input {
    margin-left: 10px;
    width: 180px;
  }
  input::-webkit-input-placeholder {
    /* placeholder颜色  */
    color: #9c9c9c;
  }
  .ant-table-wrapper {
    padding: 0px 15px;
    flex-shrink: 1;
    flex-grow: 2;
    overflow: hidden;
    > div {
      height: 100%;
      > div {
        height: 100%;
        display: flex;
        flex-direction: column;
        > ul {
          flex-shrink: 0;
          text-align: right;
        }
        > div {
          // height:92%;
          flex-shrink: 1;
          flex-grow: 2;
          overflow: hidden;
          > div {
            height: 100%;
            > div {
              height: 100%;
              display: flex;
              flex-direction: column;
              .ant-table-header {
                flex-shrink: 0;
              }
              .ant-table-body {
                flex-shrink: 1;
              }
            }
          }
        }
      }
    }
  }
  .ant-table-content {
    border: 1px solid #e8e8e8;
  }
  .ant-table-column-title {
    font-weight: bold;
    color: #555;
    font-size: 16px;
  }
  .ant-table-tbody > tr > td {
    font-size: 16px;
    color: #333;
  }
  //该按钮与前者按钮的间隔
  .btn-space {
    margin-left: 15px;
  }
  // .ant-table-body {
  //   max-height: 600px;
  //   overflow-y: scroll;
  // }
  //字段需要跳转路由的点击样式
  .link-a {
    color: #333;
    &:hover {
      color: @base-color;
    }
  }
}
//form整页布局样式
.form-box {
  height: 100%;
  .form {
    height: 100%;
    overflow-x: hidden;
  }
}
//路由表单页样式
.form {
  padding: 15px 15px;
  overflow-y: auto;
  box-sizing: border-box;
  .ant-form-item {
    margin-bottom: 0px;
    min-height: 70px;
    width: 100%;
    .flex-space-between();
    align-items: center;
    .ant-form-item-label {
      padding: 0;
      width: 100px;
      min-height: 40px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      label {
        line-height: 20px;
      }
      text-align: right;
    }
    .ant-form-item-control-wrapper {
      width: calc(100% - 150px);
      min-height: 40px;
      display: flex;
      align-items: center;
      > div {
        width: 100%;
      }
    }
    .ant-form-item-label,
    .ant-form-item-control,
    label {
      font-size: 16px;
      color: #333;
    }
  }
  .ant-input {
    height: 40px;
    font-size: 16px;
    padding: 0px 0px 0px 10px;
  }
  input::-webkit-input-placeholder {
    /* placeholder颜色  */
    color: #9c9c9c;
    font-size: 16px;
  }
  .ant-col-6 {
    max-width: 100px;
  }
  .form-footer {
    padding: 15px 0;
    text-align: center;
  }
}
//路由审核页(左白右灰)盒子布局
.box-content {
  height: 100%;
  overflow: auto;
  .section-title {
    margin-top: 15px;
  }
  .basic-box {
    height: 100%;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
  }
  .box-left {
    width: 60%;
    box-sizing: border-box;
    padding-right: 20px;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .box-right {
    background: #f2f5f8;
    width: 40%;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    color: #333;
    padding: 0 20px 20px;
    box-sizing: border-box;
  }
  .form-item {
    width: 100%;
    margin-bottom: 16px;
    color: #333;
    display: flex;
    .ant-col {
      padding: 10px 10px;
      line-height: 24px;
    }
    .info {
      width: 100%;
      span {
        display: inline-block;
        height: 100%;
        color: #919191;
      }
    }
  }
}

//委员管理列表页头部样式
.list-search {
  padding: 15px 10px 5px 15px;
  .search-inline {
    position: relative;
    display: inline-block;
    // margin-bottom: 16px;
    .search-item {
      position: relative;
      display: inline-block;
      vertical-align: middle;
      height: 34px;
      margin-right: 10px;
      font-size: 14px;
    }
    .ant-input {
      height: 34px;
      line-height: 34px;
      border-radius: 2px;
    }
  }
  .upper-right {
    float: right;
  }
  /**按钮重置样式 */
  .btn-group {
    display: flex;

    /**扩展按钮重置样式 */
    .dropdown-btn {
      height: 34px;
      border: 1px solid #d9d9d9;
      background-color: #fff;
      &:hover {
        background-color: #fff;
        border-color: #1c8de8;
        color: #1c8de8;
      }
    }
  }
}
/**清除浮动 */
.clear:after {
  content: "";
  display: block;
  clear: both;
}
